# 保定票务

import requests, json, datetime, time

headers = {
    "Host": "m.polyt.cn",
    "Connection":"keep-alive",
    "City-Code": "110100",
    "Theater": "40",
    "Channel": "plat_h5",
    "Authorization":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ3OCtwcUR3aXVxSGQvNzd2WTdESWh0SnljTi9Pamtydm9Mb0tUWFoza0ZTdUxMZFNFVXFvTkE3b2tUVk5RZGs9IiwiaXNzIjoicGxhdF9oNSIsImV4cCI6NDg3MDU0NDM1OSwiaWF0IjoxNzE2OTQ0MzU5fQ.aTb1yaBkRXLwUVeGTtbFAAa990kVqY31kLQS35UA8Io",
    "Atgc": "c23d28635d65ce8ca063bfed15a9914d",
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) XWEB/9129",
    "Accept": "*/*",
    "Content-Type": "application/json",
    "Sec-Fetch-Site": "same-origin",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Dest": "empty",
    "Referer": "https://m.polyt.cn/?code=091lLgll2yl6wd4vWNnl2vXW9j2lLgld&state=loginPage",
    "Accept-Encoding": "gzip, deflate, br",
    "Accept-Language": "zh-CN,zh;q=0.9",
    "Cookie": "Hm_lvt_48227ea1359bbe879f479e096df24284=1716944030; Hm_lpvt_48227ea1359bbe879f479e096df24284=1716944319; tfstk=fUDvPF1gRUYcZIdihmOo7J5bjInt6xn4oqoCIP4c143-rz4goVf0fb3srrgtbnr_5VgTSjAkZmo4QRTnWpvn0IXu303Y1RsWfkEA1i5jKxm4QRTkTVAUTmuKtIqH6Rt8FlqChRafh3F7jle1h56fNaazfRas5ra7FlqdGPZbC8GNEFU5cPXtEL_guopeDOWZeuTavmChIuHLDSUIcxB1ClrYMyibzej_XeNSb5HNbOFocXuaAq_XWPk-VxGIRUf0lXEtxf3Bjsru6xy85x9FvzMxXYFqZp_84bim1xuAXOZqnvVT87K1Q52SKWGIkG-EV-Zs7WkM8tzjfDkEtJpA8ohSv8IzPvDLf9_L48CX23CN_SZkBC3asLVESEr8-npO_1Py4uUH2O5N_SXu2yxkj15aMFC.."
}


data = {"activityId": "968835309608009728", "applicantName": "李四", "applyNum": 1, "leaveMessage": ""}

url = "https://m.polyt.cn/platform-backend/cms/save/apply-activity/registered"


res = requests.post(url, data=json.dumps(data), headers=headers)

print(res.text)
"""
{
	"code":"200",
	"data":{
		"orderExpireTime":null,
		"orderId":null,
		"payPrice":null
	},
	"errors":null,
	"ext":{},
	"state":"SUCCESS",
	"success":true
}
"""
